package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 跟师心得对象 TRAINING_CADET_TEACHER_EXPERIENCE
 *
 * @author dp
 * @date 2023-11-27
 */
@Data
public class TrainingCadetTeacherExperience extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private String experienceId;

    private String experienceTitle;

    private String experienceDisease;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    private String experienceContent;

    private Long experienceStatus;

    private String attachmentPath;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private Long isDelete;

    private Long submitBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitTime;

    private Long auditBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    private Long modifyBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = " ", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /**
     * 培训基地ID
     */
    @Excel(name = "培训基地ID")
    private String baseId;

    /**
     * 培训基地名称
     */
    @Excel(name = "培训基地名称")
    private String baseName;

    /**
     * 培训科室ID
     */
    @Excel(name = "培训科室ID")
    private String deptId;

    /**
     * 培训科室名称
     */
    @Excel(name = "培训科室名称")
    private String deptName;

    /**
     * 培训学员ID
     */
    @Excel(name = "培训学员ID")
    private String cadetId;

    /**
     * 培训学员名称
     */
    @Excel(name = "培训学员名称")
    private String cadetName;

    /**
     * 培训导师ID
     */
    @Excel(name = "培训导师ID")
    private String mentorId;

    /**
     * 培训导师名称
     */
    @Excel(name = "培训导师名称")
    private String mentorName;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("experienceId", getExperienceId())
                .append("experienceTitle", getExperienceTitle())
                .append("experienceDisease", getExperienceDisease())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("experienceContent", getExperienceContent())
                .append("experienceStatus", getExperienceStatus())
                .append("attachmentPath", getAttachmentPath())
                .append("isDelete", getIsDelete())
                .append("submitBy", getSubmitBy())
                .append("submitTime", getSubmitTime())
                .append("auditBy", getAuditBy())
                .append("auditTime", getAuditTime())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("modifyBy", getModifyBy())
                .append("modifyTime", getModifyTime())
                .toString();
    }
}
